import request from '@/utils/request'

// 查询所有收费规则列表
export function listAllRules(query) {
  return request({
    url: '/rules/allRules/list',
    method: 'get',
    params: query
  })
}

// 查询所有收费规则详细
export function getAllRules(scRuleId) {
  return request({
    url: '/rules/allRules/' + scRuleId,
    method: 'get'
  })
}

// 新增所有收费规则
export function addAllRules(data) {
  return request({
    url: '/rules/allRules',
    method: 'post',
    data: data
  })
}

// 修改所有收费规则
export function updateAllRules(data) {
  return request({
    url: '/rules/allRules',
    method: 'put',
    data: data
  })
}

// 删除所有收费规则
export function delAllRules(scRuleId) {
  return request({
    url: '/rules/allRules/' + scRuleId,
    method: 'delete'
  })
}
